﻿@{
    Layout = null;
}
@model System.Collections.IEnumerable
           
<!DOCTYPE html>

<html>
@Html.Partial("LoadPanelPartial")
<head>
   <title></title>
  @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
    
         <script>
             if (top.boardtop) {
                 top.boardtop.head_txt.innerText = "文件登记";
             }
    </script>

    @Html.DevExpress().GetStyleSheets(

                new StyleSheet { ExtensionType = ExtensionType.GridView, Theme = DevExpressHelper.Theme }

)
    @Html.DevExpress().GetScripts(
                    new Script { ExtensionType = ExtensionType.ListBox }
    )

    <script type="text/javascript">
        $(function () {
            $("#toolMenu").smartFloat();

        });

        function OnBeginCallback(s, e) {
            e.customArgs["command"] = e.command;
            e.customArgs["pageIndex"] = s.pageIndex;
            e.customArgs["pageCount"] = s.pageCount;
            e.customArgs["pageRowSize"] = s.pageRowSize;
            e.customArgs["pageRowCount"] = s.pageRowCount;
            e.customArgs["lb"] = $("#hdFTaskClassCd").val();
            e.customArgs["wcqk"] = $("#hdwcqk").val();
        }
        function TaskEdit(FTaskID) {
            window.location.href = rootPath + "/Admin/TaskCheck/TaskCheck?taskID=" + FTaskID;
        }

        function MenuTop_emClick(source, e) {
            switch (e.item.name) {
                case "btnAdd":
                    {
                        if (gvEditing.GetFocusedRowIndex() >= 0) {
                            window.location.href = rootPath + "/Admin/TaskCheck/TaskCheck?taskID=" + gvEditing.GetRowKey(gvEditing.GetFocusedRowIndex()); ;
                            break;
                        }
                        else {
                            break;
                        }
                    }
            }
        }

        function Search() {
            $("#hdFTaskClassCd").val($("#cx_lb").val());
            $("#hdwcqk").val($("#cx_wcqk").val());
            gvEditing.Refresh();

        }


    </script>

</head>
<body>
 <div class="floatToolMenu" id="toolMenu">
        @Html.DevExpress().Menu(settings =>
   {
       settings.Name = "toolBarMenu";
       settings.ItemAutoWidth = false;
       settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
       settings.Styles.Style.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
       settings.Styles.Style.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);
       settings.Items.Add(item =>
       {
           item.Name = "btnAdd";
           item.Text = "审批";
           item.ClientEnabled = true;
           item.Image.Url = Url.Content("~/Content/ControlImages/edit_add.png");

       });
       settings.ClientSideEvents.ItemClick = "function(source,e){MenuTop_emClick(source,e)}";
       settings.ItemLinkMode = ItemLinkMode.ContentBounds;
   }).GetHtml()
    </div>

    <div>
     <table border="0" cellspacing="0" cellpadding="0" align="center" style=" border:0px">
        <tr>
                 <td>        <b>  类别: </b></td>
                <td align="left" style=" border:0px;width:40px; height:40px; vertical-align:middle">
                <select name="cx_lb" id="cx_lb">
                 		  <option value="">请选择状态进行查询</option>
                 @foreach (ElingOA6_Admin_DSJCJ.Model.CdTaskClass CdTaskClassmodel in ViewData["CdTaskClassList"] as List<ElingOA6_Admin_DSJCJ.Model.CdTaskClass>)
                 {
                          <option value="@CdTaskClassmodel.FTaskClassCd">@CdTaskClassmodel.FTaskClassName</option>
                 }
                        </select>
                 </td>
                 <td align="right" style=" border:0px; text-align:right;width:70px">
               <b>  完成情况: </b>
               </td>
               <td align="left" style=" border:0px; text-align:left">
               <select name="cx_wcqk" id="cx_wcqk">
						  <option value="">请选择状态进行查询</option>
                          <option value="1">正在处理</option>
                          <option value="2">未确认</option>
  
                        </select>
                 </td>
                 <td align="center" style=" border:0px">
                 <input type="button" onclick="Search()" title="查询"value="查询" />
                 </td>
        </tr>
        
    </table>
    </div>

    @Html.Partial("TaskCheckPartial", Model)

        @Html.Hidden("hdFTaskClassCd", "")      
        @Html.Hidden("hdwcqk", "")  
</html>
